<?php
Util::tsRegisterAssetJs('admin.js');
/** @var ReclamoController $this */
/** @var Reclamo $model */
$this->breadcrumbs = array(
    'Reclamos' => array('index'),
    Yii::t('AweCrud.app', 'Manage'),
);
?>
<br>
<div class="main-box clearfix">
    <header class="main-box-header clearfix">
        <h2 class="pull-left"><?php echo Yii::t('AweCrud.app', 'Bandeja de') ?> <?php echo Reclamo::label(2) ?> </h2>
    </header>
    <div class="main-box-body clearfix">
        <?php
        $this->widget('booster.widgets.TbGridView', array(
            'id' => 'reclamo-grid',
            'type' => 'striped table-responsive condensed',
            'dataProvider' => $model->filtro_admin()->orden_fecha_creacion()->searchAdministrador(),
            'filter' => $model,
            'columns' => array(
                'asunto',
                array(
                    'name' => 'estado',
                    'type' => 'raw',
                    'value' => '$data->estadoLabel'
                ),
                'fecha_creacion',
                array('class' => 'booster.widgets.TbButtonColumn',
                    'template' => '{resolt}',
                    'buttons' => array(
                        'resolt' => array(
                            'label' => 'Revisar',
                            'icon' => 'fa fa-search',
                            'url' => '"reclamos/reclamo/ajaxResolver/id/".$data->id',
                            'imageUrl' => false,
                            'click' => 'js:function(){viewModal($(this).attr("href"),function(){});return false;}',
                            'visible' => 'Util::checkAccess(array("action_reclamo_ajaxResolver"))'
                        ),
                    ),
                ),
            ),
        ));
        ?>
    </div>
</div>
